<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html>
<html lang="es">
    <head>
        <meta charset="utf-8" />
        <style type='text/css'>
            body
            {
                font-family: Arial;
                font-size: 14px;
                background-color: #FFF;
            }
            a {
                color: blue;
                text-decoration: none;
                font-size: 14px;
            }
            a:hover
            {
                text-decoration: underline;
            }

            h3
            {
                text-align: center;
            }
        </style>
    </head>
    <body>
        <div style="/*text-align: center;*/">
            <h3><?php echo $comision; ?></h3>
            <h3><?php echo "Clase del $fecha"; ?></h3>
            <br>
            <?php echo form_open("admin/abm_clases/guardar_asistencia/$idComision/$fecha") ?>
            <table align="center">
                <tr>
                    <th>Alumno</th><th>Asistencia</th>
                </tr>
                <?php
                foreach ($alumnos as $alumno){
                    echo "<tr>";
                    echo "<td>".$alumno['apellido']." ".$alumno['nombre']."</td>";
                    echo "<td style='text-align: center;'>".form_checkbox("alumnos[".$alumno['idPersona']."]", 'TRUE')."</td>";
                    echo "</tr>";
                }
                ?>
            </table>
            <p style="text-align: center;">
            <?php 
                echo form_submit('', 'Enviar');
                echo " ";
                echo form_reset('', 'Borrar');
                ?>
            </p>
        </div>
    </body>
</html>